//
//  PSNavigationVC.m
//  UITabBar的不规则显示
//
//  Created by ibos on 15/12/28.
//  Copyright © 2015年 ibos. All rights reserved.
//

#import "PSNavigationVC.h"

@implementation PSNavigationVC


+ (void)initialize
{
    // 设置整个项目所有的item的主题样式
    UIBarButtonItem *item = [UIBarButtonItem appearance];
    // 设置普通状态下的样式
    NSMutableDictionary *textAttrs = [NSMutableDictionary dictionary];
    textAttrs[NSForegroundColorAttributeName] = [UIColor colorWithRed:234/255.0 green:104/255.0 blue:9/255.0 alpha:1.0];
    textAttrs[NSFontAttributeName] = [UIFont systemFontOfSize:14];
    [item setTitleTextAttributes:textAttrs forState:UIControlStateNormal];
    
    // 设置不可用状态
    NSMutableDictionary *disabledTextAttrs = [NSMutableDictionary dictionary];
    disabledTextAttrs[NSForegroundColorAttributeName] = [UIColor colorWithRed:0.8 green:0.8 blue:0.8 alpha:0.5];
    disabledTextAttrs[NSFontAttributeName] = [UIFont systemFontOfSize:14];
    [item setTitleTextAttributes:disabledTextAttrs forState:UIControlStateDisabled];
}




@end
